<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
$nums=20;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='3' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<form name="savefrom1" method="post" action="?ac=edit&do=save&fileurl=workdate">
	<input type="hidden" name="savetype" value="edit" />
	<input type="hidden" name="id" value="<?=$workdate['id']?>" />
<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center">事务预计进行时间</td>
      <td class="right"></td>
   </tr>
</table>
<?php
			$startdate=explode(' ',$workdate['startdate']); 
			$starth=explode(':',$startdate[1]); 
            ?>
 <table class="TableBlock no-top-border" width="90%">
    <tr>
      <td nowrap class="TableData" width="15%"> 开始日期：</td>
      <td class="TableData">
        <input type="text" name="startdate" class="BigInput" size="15" value="<?=$startdate[0]?>" onClick="WdatePicker();"/>	时间：<select name="starth">
			    
			    <?php
				for($i=1;$i<=23;$i++){
				if (strlen($i)<2){
				$j="0".$i;
				}else{
				$j=$i;
				}
				?>
				<option value="<?=$j?>" <?php if($starth[0]==$j){?>selected="selected"<?php }?>><?=$j?></option>
				<?php } ?>
				</select>
				点
				：<select name="starti">
			    
			    <?php
				for($i=1;$i<=59;$i++){
				if (strlen($i)<2){
				$j="0".$i;
				}else{
				$j=$i;
				}
				?>
				<option value="<?=$j?>" <?php if($starth[1]==$j){?>selected="selected"<?php }?>><?=$j?></option>
				<?php } ?>
				</select>分	</td>
    </tr>
	<?php
			$enddate=explode(' ',$workdate['enddate']); 
			$endh=explode(':',$enddate[1]); 
            ?>
    <tr>
      <td nowrap class="TableData"> 结束日期：</td>
      <td class="TableData">
<input type="text" name="enddate" class="BigInput" size="15" value="<?=$enddate[0]?>" onClick="WdatePicker();"/> 时间：<select name="endh">
			    
			    <?php
				for($i=1;$i<=23;$i++){
				if (strlen($i)<2){
				$j="0".$i;
				}else{
				$j=$i;
				}
				?>
				<option value="<?=$j?>" <?php if($endh[0]==$j){?>selected="selected"<?php }?>><?=$j?></option>
				<?php } ?>
				</select>
				点
				：<select name="endi">
			   
			    <?php
				for($i=1;$i<=59;$i++){
				if (strlen($i)<2){
				$j="0".$i;
				}else{
				$j=$i;
				}
				?>
				<option value="<?=$j?>" <?php if($endh[1]==$j){?>selected="selected"<?php }?>><?=$j?></option>
				<?php } ?>
				</select>分
      </td>
    </tr>
	
	<tr>
      <td nowrap class="TableHeader" colspan="2"><b>&nbsp;事务信息</b></td>
    </tr>
	
    <tr>
      <td nowrap class="TableData">事务主题：</td>
      <td class="TableData"><input type="text" name="title" class="BigInput" size="50" value="<?=$workdate['title']?>" />	 
      </td>
    </tr>
	<tr>
      <td nowrap class="TableData">事务内容：</td>
      <td class="TableData"><textarea name="content" cols="70" rows="5" class="BigInput"><?=$workdate['content']?></textarea>
      </td>
    </tr>
	<tr>
      <td nowrap class="TableData">事务设置：</td>
      <td class="TableData"><input name="type" type="radio" value="私人" <?php if($workdate[type]=='私人'){?>checked="checked"<?php }?> style="border:0;" />私人
			<input name="type" type="radio" style="border:0;" value="公开" <?php if($workdate[type]=='公开'){?>checked="checked"<?php }?>/>
			公开	
      </td>
    </tr>
   
 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">
       <?php
		if($workdate['completiondate']=='' && $workdate['uid']==$_USER->id){		
		?>
		<input type="submit" name="Submit" value="完 成" class="BigButton"> 
 <?php } ?>
      </td>
    </tr>
  </table>
</form>
</div>
</div>
 
</body>
</html>
